<template>
  <div>
<router-view></router-view>
  </div>
</template>

<script>
import request from './utils/request'
import { setToken } from './utils/storage'
export default {
  name: 'ElementPcApp',

  data () {
    return {

    }
  },

  methods: {

  },
  async created () {
    const res = await request.post('/auth/login', {
      username: 'admin8',
      password: 'admin'
    })
    console.log(res)
    setToken(res.data.data.token)
  }

}
</script>

<style lang="scss" scoped>

</style>
